Not every repetitive task should be automated. A four-way decision framework for working out what to do with each one.